<!--
 * @Description: 对话框
 * @Author: rendc
 * @Date: 2021-09-09 09:59:11
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-09 10:11:36
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>对话框</title>
</head>

<body>

</body>
<script>
  console.log("代码1");
  // var result = alert("提示");
  // var result = confirm("你确定要吃炸鸡吗？");
  var result = prompt("请输入你的姓名");
  console.log("你好" + result);
  console.log("代码2");
</script>

</html>